﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace user_activity
{
    public partial class dlgConfig : Form
    {
        public dlgConfig()
        {
            InitializeComponent();
        }

        private void dlgConfig_Load(object sender, EventArgs e)
        {

        }

        private void tbMin_Scroll(object sender, EventArgs e)
        {
            if (tbMin.Value > tbMax.Value)
                tbMax.Value = tbMin.Value;

            lblAAFK_Summary.Text = tbMin.Value.ToString() + " -> " + tbMax.Value.ToString() + " (+" + tbRng.Value.ToString() + ") Min";
        }

        private void tbMax_Scroll(object sender, EventArgs e)
        {
            if (tbMax.Value < tbMin.Value)
                tbMin.Value = tbMax.Value;

            lblAAFK_Summary.Text = tbMin.Value.ToString() + " -> " + tbMax.Value.ToString() + " (+" + tbRng.Value.ToString() + ") Min";
        }

        private void tbRng_Scroll(object sender, EventArgs e)
        {
            lblAAFK_Summary.Text = tbMin.Value.ToString() + " -> " + tbMax.Value.ToString() + " (+" + tbRng.Value.ToString() + ") Min";
        }
    }
}
